package com.team.web;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class IndexServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;
	@Override
	public void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String method = request.getParameter("_m");
		if("start".equals(method)){
			request.getRequestDispatcher("/WEB-INF/views/index.jsp").forward(request, response);
		}else if("projList".equals(method)){
			request.getRequestDispatcher("/WEB-INF/views/newProj.jsp").forward(request, response);
		}
		
	}
	
}
